package com.iskyline.utils.jdks;

import java.util.Enumeration;
import java.util.Map;

public class OsSystemUtils {

    public static void main(String[] args) {
        System.out.println("============================== ENV ==============================");
        Map<String,String> envMap = System.getenv();
        envMap.forEach((key,value)->{
            System.out.println(key+"\t"+value);
        });
        System.out.println("============================== Properties ==============================");
        Enumeration properties = System.getProperties().propertyNames();
        while (properties.hasMoreElements()){
            Object nextElement = properties.nextElement();
            System.out.println(nextElement+"\t"+System.getProperty(nextElement.toString()));
        }
    }

}
